package com.shark.erp.mapper;

import com.shark.erp.entity.Purchase;
import com.shark.erp.entity.PurchaseDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PurchaseDetailMapper {

    List<PurchaseDetail> selectAllPurchaseDetail(String manifestNumber);

    List<PurchaseDetail> selectPurchaseDetailByPurchaseDetailNumber(@Param("key") String key,@Param("manifestNumber") String manifestNumber);

    void insertPurchaseDetail(PurchaseDetail purchaseDetail);

    void deletePurchaseDetail(@Param("purchaseDetailNumber") String purchaseDetailNumber);

    void deletePurchaseDetailByManifestNumber(@Param("manifestNumber") String manifestNumber);


    void updatePurchaseDetail(PurchaseDetail purchaseDetail);
}
